package com.danco.training.zaneuskaya.repository.impl;

import java.util.List;


import org.hibernate.HibernateException;

import org.springframework.stereotype.Repository;

import com.danco.training.zaneuskaya.domain.Interest;
import com.danco.training.zaneuskaya.repository.InterestDao;

/**
 * @author Zaneuskaya Aliaksandra
 *
 */
@Repository
public class InterestDaoImpl extends AbstractHibernateDao<Interest, Integer> implements
		InterestDao {

	
	private static final String INTEREST_TITLE = "interestTitle";

	@Override
	public Interest read(Integer PK) throws HibernateException {
		return super.read(Interest.class, PK);
	}

	@Override
	public List<Interest> readAll() throws HibernateException {
		
		return super.readAll(Interest.class, INTEREST_TITLE);
	}

	
	

}
